//
//  TrainingPlanData.m
//  JiZhuiAn
//
//  Created by Easy.Lin on 16/7/17.
//  Copyright © 2016年 Easy. All rights reserved.
//

#import "TrainingPlanData.h"

@implementation TrainingPlanData

- (instancetype)initFromBmobObject:(BmobObject *)obj
{
    self = [super initFromBmobObject:obj];
    if (self) {
        self.userId = [obj objectForKey:@"userId"];
        self.duration = [[obj objectForKey:@"duration"] integerValue];
        self.trainingIdArray = [obj objectForKey:@"trainingIdArray"];
    }
    return self;
}

@end
